package com.spm.pojo;

import java.io.Serializable;
import java.util.List;

public class Teacher implements Serializable {
    //老师编号
    private String tid;
    //老师姓名
    private String name;
    //老师性别
    private String sex;
    //老师所教课程
    private List<Course> courses;

    private String Tpassword;

    public Teacher(String tid,String Tpassword){
        this.tid=tid;
        this.Tpassword=Tpassword;
    }

    public Teacher(String tid, String name, String sex, List<Course> courses, String tpassword) {
        this.tid = tid;
        this.name = name;
        this.sex = sex;
        this.courses = courses;
        Tpassword = tpassword;
    }

    public Teacher(String tid, String name, String sex, String Tpassword) {
        this.tid = tid;
        this.name = name;
        this.sex = sex;
        this.Tpassword=Tpassword;
    }
    public Teacher(String tid, String name, String sex, List<Course> courses) {
        this.tid = tid;
        this.name = name;
        this.sex = sex;
        this.courses = courses;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public List<Course> getCourses() {
        return courses;
    }

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }
    public String getPassword(){
        return Tpassword;
    }

    public void setPassword(String Tpassword){
        this.Tpassword=Tpassword;
    }
}
